<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN" "adf22werw.w3.org/TR/html4/strict.dtd">
<!-- saved from url=(0274)http://tyr12321s.gov.cn/am/login/initAuth.do?gotoUrl=http%3A//tyr12321s.gov.cn/am/oauth2/authorize%3Fclient_secret%3Dgdbswt170221%26scope%3Dall%26response_type%3Dcode%26redirect_uri%3Dhttp%253A%252F%252Fwww.gdbs.gov.cn%252Fportal%26service%3DinitService%26client_id%3Dgdbswt -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>登录 - 金园街道</title>
    <link rel="shortcut icon" href="http://tyr12321s.gov.cn/am/favicon.ico" type="image/x-icon">
    <script type="text/javascript" src="./static/js/jquery-1.8.0.min.js"></script><style type="text/css" adt="123"></style>

    <script type="text/javascript" src="./static/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="./static/js/date.js"></script>
    <script type="text/javascript" src="./static/js/jquery.json-2.3.js"></script>
    <script type="text/javascript" src="./static/js/json2.js"></script>
    <script type="text/javascript" src="./static/js/des.js"></script>
    <script type="text/javascript" src="./static/js/noticewtdl.js"></script>
    <script type="text/javascript" src="./static/js/notice_pop.js"></script>
    <script src="./static/js/index.js"></script>
    <link href="./static/js/partake.css" rel="stylesheet">
    <link href="./static/css/components.css" rel="stylesheet">
    <style type="text/css">
        .no-account {
            color: #999;
            padding-left: 120px;
        }
    </style>
<style type="text/css">object,embed{                -webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;                -ms-animation-duration:.001s;-ms-animation-name:playerInserted;                -o-animation-duration:.001s;-o-animation-name:playerInserted;                animation-duration:.001s;animation-name:playerInserted;}                @-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}</style></head>

<body class="tiny-font-weight">




<div class="login-main">
    
    <div class="login-wrapper" role="heading">
        <div class="login" role="presentation">

            <div class="login-left">

                <h1 class="login-title">金园街道统一身份认证平台登录</h1>

                <!--登录框-->
                <div class="normal-login" role="main">
                    <div class="form">
                        <div class="form-field" id="accountDIV">
                            <div class="form-input-wrapper form-input-small">
                                <input name="loginName" placeholder="请输入账号" type="text" id="loginName" accesskey="n" tabindex="0" aria-label="登录账号">
                            </div>
                            <p class="form-error-msg" id="userAccount_msg" style="padding-left: 0"></p>
                        </div>
                        <div class="form-field" id="loginPwdDIV">
                            <div class="form-input-wrapper form-input-small">
                                <input name="loginPwd" type="password" id="loginPwd" autocomplete="off" onpaste="return false" oncontextmenu="return false" oncopy="return false" oncut="return false" onselectstart="return false" aria-label="登录密码" placeholder="请输入密码">
                            </div>
                            <p class="form-error-msg" id="loginPwd_msg" style="padding-left: 0"></p>
                        </div>
                        <div class="form-field" id="tempValiCodeDIV">
                            <div class="form-input-wrapper form-input-min fl-mr">
                                <input type="text" placeholder="请输入验证码" name="tempValidateCode" id="tempValidateCode" accesskey="v" tabindex="0" maxlength="6" aria-label="验证码" onkeydown="btnDobEnter();">
                            </div>
                            <img id="codeIm" class="img-pic-code" name="codeIm" title="看不清，换一张" alt="看不清，换一张" style="cursor: pointer;vertical-align:middle;" tabindex="0" onclick="refresh(this);" aria-label="图形验证码" src="http://tyr12321s.gov.cn/am/imageServlet?t=1542890454745">
                            <p class="form-error-msg" id="tempValiCode_msg" style="padding-left: 0"></p>
                        </div>
                        <div class="form-field">
                            <label class="form-checkbox-wrapper remember">
                                <input type="checkbox" id="remLoginCredCK" tabindex="0" aria-label="一周内记住账号">
                                <span>一周内记住账号</span>
                            </label>
                            
                            <p class="register-wrapper">
                                <a href="javascript:findPassword();" alt="忘记密码" title="忘记密码" tabindex="0" class="forget-pwd forget-pwds">找回密码</a>
                            </p>
                        </div>
                        <div class="form-field">
                            <a class="btn btn-primary btn-login" onclick="userLogin();" data-toggle="modal" id="userLoginBtn" alt="用户名登录" title="用户名登录" tabindex="0">登 录</a>
                        </div>
                    </div>

                    <p class="register-wrapper">
                        
                        <a href="http://tyr12321s.gov.cn/am/help/help.html" alt="用户帮助" title="用户帮助" tabindex="0" class="forget-pwd" target="_blank" style="padding: 0px;">用户帮助</a>
                        <em style="font-style:normal;border-left:1px solid;margin-left:10px;padding-left: 20px; ">咨询电话：12345</em>
                        <em class="no-account" alt="没有账户?" title="没有账户" tabindex="0" style="font-style:normal">没有账户？</em>
                        <a href="./reg.html" alt="立即注册" title="立即注册" tabindex="0" class="register registerLogin">立即注册</a>
                    </p>

                    <!--登录二维码-->
                    <div class="login-qr" id="qrCodeDIV">
                        <p class="qr-info">请使用
                            <i class="zwfu-app-client">金园街道政务服务APP
                                <span class="zufu-app-client-hover">
                                    <b class="qrcode-gov1"></b>
                                    <i>扫描下载 金园街道政务服务APP</i>
                                </span>
                            </i>
                            扫描二维码登录
                        </p>
                        <p class="qr-infos" style="margin-top: 20px; display: none;"><a href="adf22werw.gdzwfw.gov.cn/portal/AppDownload.do" target="_blank">下载金园街道政务服务APP</a></p>
                        <!--<a class="back-login">返回账号密码登录</a><br />-->
                        <div class="qr-wrapper">
                            <img class="qr" id="QrCodeImg" src="./login_files/elm-loader.gif" width="215" onclick="showQRCodeWin();" height="215" alt="二维码" title="二维码" style="margin-top: 20px">
                            <div class="qr-timout">
                                <h3>二维码已过期</h3>
                                <a class="btn-refre" onclick="showQRCodeWin();">点击刷新</a>
                            </div>
                        </div>
                    </div>
                    <!--登录二维码 end-->
                    <!-- CA登录框 -->

                    <div id="CAloginPlant" hidden="" class="login-ca" style="width: 500px; height: 360px; position: absolute; top: 0px; right: 0px; left: 0px; margin: auto; display: none;">
                        <iframe id="CAlogin" src="./login_files/login.html" frameborder="0" style="width: 500px;height: 360px;" scrolling="no"></iframe>

                    </div>

                    <!-- CA登录框 end -->

                </div>
                <!--登录框 end-->

                <div class="login-type">
                  
                </div>

                <div class="login-type" id="th_source" style="display: none;padding: 0px; padding-bottom: 10px;">
                    <a href="http://tyr12321s.gov.cn/am/login/initAuth.do?gotoUrl=http%3A//tyr12321s.gov.cn/am/oauth2/authorize%3Fclient_secret%3Dgdbswt170221%26scope%3Dall%26response_type%3Dcode%26redirect_uri%3Dhttp%253A%252F%252Fwww.gdbs.gov.cn%252Fportal%26service%3DinitService%26client_id%3Dgdbswt" id="th_goto"></a>
                </div>

            </div>

            <div class="login-right">
                
               
                <p class="info">登录后表明您已同意<a href="http://tyr12321s.gov.cn/am/common/servicePro.do" title="登录服务协议" tabindex="0">登录服务协议</a></p>
            </div>


        </div>

        <!--登录选择-->
        <div id="modal-choose-account" class="modal" role="dialog">
            <div class="modal-dialog">
                <div class="modal-hd">
                    <h2 class="modal-title">登录选择</h2>
                    <a class="modal-close" data-dismiss="modal"></a>
                </div>
                <div class="modal-bd">

                    <h3 class="field-title">请选择需要登录的单位账户</h3>

                    <table class="table choose-account-table" id="pareListTable">
                        <tbody><tr id="pareListTableTbody">
                            <th>选择</th>
                            <th>单位名称</th>
                            <th>证件类型</th>
                            <th>证件号码</th>
                            <th>绑定截止日期</th>
                            <th>联系人姓名</th>
                            <th>联系人电话</th>
                        </tr>

                    </tbody></table>

                </div>
                <div class="modal-ft">
                    <a class="btn btn-primary" href="javascript:continueSub(&#39;YES&#39;);">使用选定的单位信息</a>
                    <a class="btn btn-default" href="javascript:continueSub(&#39;NO&#39;);" id="cancelSubHref">不使用单位信息</a>
                </div>
            </div>
        </div>
        <!--登录选择 end-->

        <!--登录选择-->
        <div id="modal-chooseWj-account" class="modal" role="dialog">
            <div class="modal-dialog">
                <div class="modal-hd">
                    <h2 class="modal-title">登录选择</h2>
                    <a class="modal-close" data-dismiss="modal"></a>
                </div>
                <div class="modal-bd">

                    <h3 class="field-title">请选择要绑定的账户</h3>

                    <table class="table choose-account-table" id="wjListTable">
                        <tbody><tr id="wjListTableTbody">
                            <th>选择</th>
                            <th>用户姓名</th>
                            <th>登录名</th>
                            <th>联系电话</th>
                            <th>注册时间</th>

                        </tr>

                    </tbody></table>

                </div>
                <div class="modal-ft">
                    <a class="btn btn-primary" href="javascript:chooseUserWjLogin();">选择账户登录</a>
                    <a class="btn btn-default" href="javascript:createUserByWj();">创建新账户登录</a>
                </div>
            </div>
        </div>
        <!--登录选择 end-->



    </div>
    
</div>

<!--微警认证APP客户端扫描&下载 begin-->
<div id="modal-wj-qr" class="modal modal-small" style="font-size: 16px;">
    <div class="modal-dialog">
        <div class="modal-hd">
            <a class="modal-close" data-dismiss="modal"></a>
        </div>
        <div class="modal-bd" style="text-align: center;">
            <div class="info" style="padding-bottom: 24px;">
                <p style="margin-bottom: 15px;">请使用微警认证APP客户端扫描 二维码</p>
                <a class="link-underline" data-toggle="modal" id="downWjApp" onclick="downWjAppEvent();">下载微警认证APP客户端</a>
                <a class="link-underline" data-toggle="modal" id="backWjAppScan" style="display: none;" onclick="backWjAppScan();">返回微警认证APP客户端扫描</a>
                <a id="wjAppCancel" class="btn btn-default" style="display: none;" data-dismiss="modal">取消</a>
            </div>
            <img class="qr" id="wjQrCodeImg" alt="二维码" title="二维码" width="140" height="140" style="width: 140px; height: 140px;">
        </div>
    </div>
</div>
<!--微警认证APP客户端扫描&下载 end-->

<!--微警刷脸登录，选择用户登陆验证-->
<div id="modal-login_wj" class="modal modal-small" role="presentation">
    <div class="modal-dialog">
        <div class="modal-hd">
            <h2 class="modal-title">登录验证</h2>
            <a class="modal-close" data-dismiss="modal"></a>
        </div>
        <div class="modal-bd">
            <div class="account-info">
                <p id="showMsgP" style="color: red"></p>
            </div>
            <div class="account-info">
                <div class="form-input-wrapper form-input-small">
                    <input type="text" name="loginName" id="loginNameWj" placeholder="请输入登录名" tabindex="0">
                </div>
            </div>
            <div class="form-field required">
                <div class="form-input-wrapper form-input-small">
                    <input type="password" id="loginPwdWj" name="loginPwd" autocomplete="off" placeholder="请输入密码" tabindex="0">

                </div>
            </div>
        </div>
        <div class="modal-ft">
            <input id="checkUserId" name="checkUserId" type="hidden">
            <input id="checkUserIdCardNum" name="checkUserIdCardNum" type="hidden">
            <a class="btn btn-primary" onclick="javascript:locAccountLoginWj();" tabindex="0">开始核验</a>
            <a class="btn btn-default" onclick="javascript:cancelLoginMod();" id="cancelBind" data-dismiss="modal" tabindex="0">取消</a>
        </div>
    </div>
</div>
<!--微警刷脸登录，选择用户登陆验证-end-->


<form id="AuthLogin" name="AuthLogin" action="http://tyr12321s.gov.cn/am/UI/Login?service=initService" method="post">
    <input type="hidden" name="IDToken1" id="IDToken1">
    <input type="hidden" name="IDToken2" id="IDToken2">
    
    <input type="hidden" name="IDToken3" id="IDToken3" value="-1@false@1">
    <input type="hidden" name="goto" id="goto">
    <input type="hidden" name="SunQueryParamsString" value="cmVhbG09LyZzZXJ2aWNlPWluaXRTZXJ2aWNlJg==">
    <input type="hidden" name="encoded" value="true">
    <input type="hidden" name="gx_charset" value="UTF-8">
</form>
<script type="text/javascript" src="./login_files/common.js"></script><div id="alert" aria-label="消息提示框"><div class="box"><h2 class="head"></h2><p class="msg"></p><p><a class="btn btn-ok btn-primary">我知道了</a></p></div></div>
<div id="confirm" aria-label="确认对话框"><div class="box"><h2 class="head"></h2><p class="msg"></p><p><a class="btn btn-ok btn-primary">确认</a><a class="btn btn-cancel btn-default">取消</a></p></div></div>
<div id="modal" aria-label="模态对话框"><div class="box"><iframe frameborder="0" src="./login_files/saved_resource.html"></iframe><a class="btn-close"></a></div></div>
<div id="dialog"><div class="box"><a class="btn-close"></a></div><div class="tempbox"></div></div>
<div id="toast"></div><div id="loading" class="">
    <div class="loading-mask hidden"></div>
    <div class="loading-box">
      <span class="ani_loading"></span>
      <p class="loading-text"></p>
    </div>
  </div><div id="notification">
    <a class="btn-close"></a>
    <div class="content">
    </div>
    <div class="btn-wrapper">
      <a class="btn-prev btn btn-small btn-default">上一条</a>
      <a class="btn-next btn btn-small btn-default">下一条</a>
    </div>
  </div>
<script type="text/javascript" src="./login_files/sgLogin.js"></script>

<script type="text/javascript">
    var noticeContent = "null";
    var clientIp = "171.34.218.229";
    var bdMapUrl = "http://api.map.baidu.com/location/ip?ak=F454f8a5efe5e577997931cc01de3974&ip=171.34.218.229";
    var goto = 'http://tyr12321s.gov.cn/am/oauth2/authorize?client_secret=gdbswt170221&scope=all&response_type=code&redirect_uri=http%3A%2F%2Fwww.gdbs.gov.cn%2Fportal&service=initService&client_id=gdbswt';
    var gotoURLEncoded = 'aHR0cDovL3R5cnouZ2Ricy5nb3YuY24vYW0vb2F1dGgyL2F1dGhvcml6ZT9jbGllbnRfc2VjcmV0PWdkYnN3dDE3MDIyMSZzY29wZT1hbGwmcmVzcG9uc2VfdHlwZT1jb2RlJnJlZGlyZWN0X3VyaT1odHRwJTNBJTJGJTJGd3d3LmdkYnMuZ292LmNuJTJGcG9ydGFsJnNlcnZpY2U9aW5pdFNlcnZpY2UmY2xpZW50X2lkPWdkYnN3dA==';
    var countdownWtdl;
    var t;
    var uuidObj = null;
    //IP区域变化标识
    var ipAreaCFlag = false;
    var ipAreaObj = null;
    var key = "3d12ec861eee4240bd05d054f66c25c5";
    var provinceStr = null;
    var cityStr = null;
    var data_ = 'null'

    var login_name = '';
    var p_sign = '';
    var login_name_temp = 'null'
    var pwd_temp = 'null';
    var signData = 'null'
    var caClientId = "bjcaapp_new";
    var caRedirectUrl = "http://tyr12321s.gov.cn/am/bigcert/caAuthLogin.do";

    

    $(function () {
        $.ajaxSetup({
            cache: false
        });

        origin_th_goto();

//        $(document).bind("contextmenu", function (e) {
//            return false;
//        });

        //禁用F12
        document.onkeydown = function (event) {
            if (event && event.keyCode == 123) {
                return false;
            }
        };

        setTimeout(function () {
            perceIP();
        }, 3000);


        if (goto != null && goto != "null"  && login_name != '' && p_sign != '') {

            loading.show({
                loadingText: '登录中...',
                withMask: true
            });
            var param = {
                "loginName": login_name_temp,
                "loginPwd": p_sign,
                "gotoUrl_":goto,
                "data": data_,
                "signData":signData,
                "areaObj": ipAreaObj
            };



            document.forms['AuthLogin'].IDToken1.value = login_name;
            document.forms['AuthLogin'].IDToken2.value = p_sign;
            document.forms['AuthLogin'].goto.value = gotoURLEncoded;
            setTimeout(function () {
                checkCredYSS(param);
            }, 10);
        }

       


        //实现初始化事件:当用户打开登录页面时，如果上次操作选择了记住密码功能，则初始化上次输入的用户名密码
        var loginN = $.cookie('gdLoginNameCookie');
        if (loginN != null && loginN != "" && loginN != "null") {
            $('#loginName').val(loginN);
            $('#remLoginCredCK').attr('checked', true);
        } else {
            $('#remLoginCredCK').attr('checked', false);
        }




        $('#CAloginPlant').on('click',function(e){

            $('#CAloginPlant').show();

            e.stopPropagation();

        });

        $('.btn-login-qr').on('click',function(){

            $('#CAloginPlant').hide();

        });

        $('.btn-login-account').on('click',function(){

            $('#CAloginPlant').hide();

        });

    });

    

    /**
     * 用户登录
     */

    function userLogin() {
        if (!checkAccount()) {
            return;
        }
        if (!checkAccountPwd()) {
            return;
        }
        if (!checkValidateCode()) {
            return;
        }
        var loginName = $("#loginName").val();
        var loginPwd = $("#loginPwd").val();
        var tempValidateCode = $('#tempValidateCode').val();
        loginName = encodeURI(loginName);
        var loginPwdTemp = strEnc(loginPwd, key, "", "");
        // 实现记住登录账号功能
        if ($('#remLoginCredCK').attr('checked')) {
            $.cookie('gdLoginNameCookie', loginName, {expires: 7});
        } else {
            $.cookie('gdLoginNameCookie', null);
        }
        var param = {
            "tempValidateCode": tempValidateCode,
            "loginName": loginName,
            "loginPwd": loginPwdTemp,
            "areaObj": ipAreaObj
        };
        loading.show({
            loadingText: '登录中...',
            withMask: true
        });
        if (goto != null && goto != "null" && goto.indexOf("client_id") != -1) {
            document.forms['AuthLogin'].IDToken1.value = loginName;
            document.forms['AuthLogin'].IDToken2.value = loginPwdTemp;
            document.forms['AuthLogin'].goto.value = gotoURLEncoded;
            setTimeout(function () {
                checkCred(param);
            }, 10);
        } else {
            setTimeout(function () {
                loginUserC(param);
            }, 10);
        }
    }

    function checkCred(param) {
        $.ajax({
            type: "POST",
            url: "/am/login/checkCred.do?_id=" + Math.random(),
            dataType: "json",
            async: false,
            cache: false,
            data: param,
            success: function (data) {
                loading.hide();
                var result = data.result;
                var msg = data.message;
                var dataObj = data.dataObject;
                if (result == "SUCCESS") {
                    //IP风险风险评估
                    var loginCre = param.loginName;
                    evaluateRisk(loginCre);
                    // 有父账户信息
                    if (data.rows != undefined && data.rows.length > 0) {
                        $('#modal-choose-account').modal();
                        $('#pareListTableTbody').nextAll().remove();
                        $.each(data.rows, function (index, value) {
                            var uniqueId = value.uniqueId;
                            var userName = value.userName;
                            var userIdType = dealWithUserIdType(null, value);
                            var unitCode = value.unitCode;
                            var userDefault2 = value.userDefault2;
                            var unitName = value.unitName;
                            var userPhone = value.userPhone;
                            var trStr = '<tr><td><input type=\"radio\" name=\"uniqueId\" value="' + uniqueId + '" /></td><td>' + userName + '</td><td>' + userIdType + '</td><td>' + unitCode + '</td><td>' + userDefault2 + '</td><td>' + unitName + '</td><td>' + userPhone + '</td></tr>';
                            $('#pareListTableTbody').after(trStr);
                        });
                        $("input[name=uniqueId]:eq(0)").attr("checked", 'checked');
                    } else { // 无父账户信息
                        var childObjFlag = "false";
                        if ($("#clildCheckBox1").is(':checked')) {
                            childObjFlag = "true";
                        }
                        var anLoginFlag = "false";
                        if ($("#anLoginCK").is(':checked')) {
                            anLoginFlag = "true";
                            childObjFlag = "false";
                            $("#clildCheckBox1").attr("checked", false);
                        }
                        //含义：父账户ID@是否返回子账户@是否匿名@登录方式@客户端公网IP@客户端IP所在地点
                        if (provinceStr == null || provinceStr == "") {
                            provinceStr = "未知"
                        }
                        if (cityStr == null || cityStr == "") {
                            cityStr = "未知";
                        }
                        var wholeAddr = provinceStr + " | " + cityStr;
                        $('#IDToken3').val("-1" + "@" + childObjFlag + "@" + anLoginFlag + "@1" + "@" + clientIp + "@" + encodeURI(wholeAddr));
                        if (ipAreaCFlag || ipAreaCFlag == "true") {
                            //获取参数并加密传递
                            var idToken1 = document.forms['AuthLogin'].IDToken1.value;
                            var idToken2 = document.forms['AuthLogin'].IDToken2.value;
                            var idToken3 = document.forms['AuthLogin'].IDToken3.value;
                            var idGoto = document.forms['AuthLogin'].goto.value;
                            var splitStr = "#!#^";
                            var abidkey = idToken1 + splitStr + idToken2 + splitStr + idToken3 + splitStr + idGoto;
                            abidkey = strEnc(abidkey, key, "", "");
                            location.href = "/am/risk/secAuth.do?abidkey=" + abidkey;
                            return;
                        }
                        document.forms['AuthLogin'].submit();
                    }
                }
                if (msg != null && msg != "" && msg != undefined) {
                    $('#modal-choose-account').modal('hide');
                    //非实名用户
                    if (msg == "UC") {
                        setTimeout(function () {
                            window.location.href = '/am' + dataObj;
                        }, 3000);
                        alert('您的账号未经过实名认证，请先实名！系统3秒后将跳转至用户中心...');
                    }
                    //验证码取消alert，修改成文本提示
                    if(data.temp=="1"){
                        $('#tempValiCodeDIV').removeClass().addClass("form-field required error");
                        $('#tempValiCode_msg').html("验证码输入错误");
                        $("#codeIm").attr('src', '/am/imageServlet?id=' + Math.random());
                    }else{
                        alert(msg);
                        $("#codeIm").attr('src', '/am/imageServlet?id=' + Math.random());
                    }
                    return;
                }
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                loading.hide();
                alert("错误码：" + XMLHttpRequest.status);
            }
        });
    }


    function loginUserC(param) {
        $.ajax({
            type: "post",
            url: "/am/login/userAuth.do",
            cache: false,
            async: false,
            dataType: "json",
            data: param,
            success: function (data) {
                loading.hide();
                if (data.result != "SUCCESS" || (data.message != null && data.message != "")) {
                    if (data.temp=="1"){
                        $('#tempValiCodeDIV').removeClass().addClass("form-field required error");
                        $('#tempValiCode_msg').html("验证码输入错误");
                        $("#codeIm").attr('src', '/am/imageServlet?id=' + Math.random());
                    }else{
                        alert(data.message);
                        $("#codeIm").attr('src', '/am/imageServlet?id=' + Math.random());
                    }
                    return;
                }
                //判断是否存在风险
                var loginCre = param.loginName;
                evaluateRisk(loginCre);
                if (ipAreaCFlag ||ipAreaCFlag == "false") {
                    var abidkey = strEnc(data.clientScript, key, "", "");
                    location.href = "/am/risk/secAuth.do?abidkey=" + abidkey;
                    return;
                }
                if (data.result == "SUCCESS") {
                    if (data.clientScript != null && data.clientScript != "") {
                        location.href = "/am/common/foward.do?tokenId=" + data.clientScript;
                    } else {
                        alert("未能正确获取票据");
                    }
                }
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                loading.hide();
                alert("错误码：" + XMLHttpRequest.status);
            }
        });
    }

  
   
    /**
     * 回车事件
     */
    function btnDobEnter() {
        //消除浏览器差异
        var event = arguments.callee.caller.arguments[0] || window.event;
        if (event.keyCode == 13) {
            userLogin();
        }
    }


    function checkAccount() {
        var loginName = $('#loginName').val();
        if (loginName == null || loginName == "") {
            $('#accountDIV').removeClass().addClass("form-field required error");
            $('#userAccount_msg').html("请输入可能为数字字母组合的登录账号");
            return false;
        }
        $('#accountDIV').removeClass().addClass("form-field required");
        $('#userAccount_msg').html("");
        return true;
    }

    function checkAccountPwd() {
        var loginPwd = $('#loginPwd').val();
        if (loginPwd == null || loginPwd == "") {
            $('#loginPwdDIV').removeClass().addClass("form-field required error");
            $('#loginPwd_msg').html("请输入包含字母和数字的8-20位字符的账号密码");
            return false;
        }
        $('#loginPwdDIV').removeClass().addClass("form-field required");
        $('#loginPwd_msg').html("");
        return true;
    }

    function checkValidateCode() {
        var tempValidateCode = $('#tempValidateCode').val();
        if (tempValidateCode == "" || tempValidateCode == null) {
            $('#tempValiCodeDIV').removeClass().addClass("form-field required error");
            $('#tempValiCode_msg').html("请输入图形验证码");
            return false;
        }
        $('#tempValiCodeDIV').removeClass().addClass("form-field required");
        $('#tempValiCode_msg').html("");
        return true;
    }


    
</script>



</body></html>